package com.example.demo.services;


import com.example.demo.entity.apply;
import com.example.demo.entity.teacher;
import com.github.pagehelper.PageInfo;

import java.time.LocalDateTime;
import java.util.List;

public interface applyService {
    public Integer addApply(String name, LocalDateTime goTime,LocalDateTime endTime,String type,String sec,String teacher,Integer liveTime,String userId,Integer teacherId);


    public List<apply> selectall();

    public List<apply> studentSel(Integer id);

    public Integer teacherSelete(Integer teacher,Integer id,Integer type);

    public List<apply> student(String id);

    public apply studentSelete(Integer id);

    public Integer countAll(Integer teacherId);

    public List<teacher> selectTeacher();

    public List<apply> students();

    public PageInfo<apply> selectPage(Integer page,Integer size);


    public PageInfo<apply> chazhaoUserId(String userId,Integer page,Integer size);

    public PageInfo<apply> selectNoApply(String userId,Integer page,Integer size);

    Object selectAllreject(Integer size, Integer page,String userId);

    Object deleteApply(Integer id);
}
